package com.wy.springbootdubboprovider.controller;

import com.alibaba.dubbo.config.annotation.Reference;
import com.wy.springbootdubboprovider.entity.User;
import com.wy.springbootdubboprovider.service.UserService;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * <p>
 *  前端控制器
 * </p>
 *
 * @author lyh
 * @since 2021-06-22
 */
@RestController
@RequestMapping("/mybatisplus/user")
public class UserController {
    @Reference
    private UserService userService;

    @RequestMapping("/findUserById")
    public User findUserById(){

        User userById = userService.findUserById("1407612326328164354");
        System.out.println(userById.toString());
        return  userById;
    }

}

